﻿<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="false" CodeBehind="userlist.aspx.cs" Inherits="BrsdServer.userList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>User Info List</title>
    <link rel="Stylesheet" href="style/userlist.css" type="text/css" />
    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="js/userlist.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:GridView ID="gvUsrInfo" runat="server" AutoGenerateColumns="False" 
            Width="98%"
            onrowdatabound="gvUsrInfo_RowDataBound" AllowPaging="True" 
            onpageindexchanging="gvUsrInfo_PageIndexChanging" PageSize="18">
            <Columns>
                <asp:TemplateField HeaderText="Serial Number">
                </asp:TemplateField>
                <asp:BoundField HeaderText="User Name" DataField="user_name" />
                <asp:TemplateField HeaderText="Authority">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("user_privilege") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="E-mail" DataField="user_email" />
                <asp:BoundField HeaderText="Last Login Time" DataField="user_lastlogin" />
                <asp:BoundField HeaderText="Register Time" DataField="user_registertime"/>
                <asp:TemplateField HeaderText="Modify">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="modifyuser.aspx" Text="Modify"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Domain">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="dnslist.aspx" Text="Check"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <PagerTemplate>
                <asp:Label ID="lblPage" runat="server" Text='<%# "The" + (((GridView)Container.NamingContainer).PageIndex + 1)  + "Page/All" + (((GridView)Container.NamingContainer).PageCount) %> '></asp:Label>
                <asp:LinkButton ID="lbnPrev" runat="server" Text="Last" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>' CommandName="Page" CommandArgument="Prev"  ></asp:LinkButton>        
                <asp:LinkButton ID="lbnNext" runat="Server" Text="Next" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>' CommandName="Page" CommandArgument="Next" ></asp:LinkButton>
                <asp:LinkButton ID="lbnLast" runat="Server" Text="Last Page"   Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>' CommandName="Page" CommandArgument="Last" ></asp:LinkButton> 
            </PagerTemplate>
            <HeaderStyle CssClass="main_tr" Height="30"/>
            <RowStyle Height="20" VerticalAlign="Middle" HorizontalAlign="Center" Font-Size="14px" />
        </asp:GridView>
    </div>
    </form>
</body>
</html>
